package com.qf.service;

import com.qf.entity.User;
import com.qf.utils.SecurityContextHolder;

public class Test2Service {

    public void showUser(){
        //获取当前正在登录的用户信息
        User user = SecurityContextHolder.getUser();
        System.out.println("Test2Service:" + user);
    }
}
